package com.tungse.study.mini_spring.sub;

import com.tungse.study.mini_spring.annotation.MyAutowired;
import com.tungse.study.mini_spring.annotation.MyComponent;
import com.tungse.study.mini_spring.annotation.MyPostConstruct;

@MyComponent
public class Cat {

    @MyAutowired
    private Dog dog;

    @MyPostConstruct
    public void init() {
        System.out.println("cat init;  cat = " + this + ";  dog = " + dog);
    }

}
